//This function will write a 2 byte integer to the eeprom at the specified address and address + 1
void SRAMWriteInt(int p_address, int p_value)
  {
    byte lowByte = ((p_value >> 0) & 0xFF);
    byte highByte = ((p_value >> 8) & 0xFF);
    RTC.set_sram_byte(lowByte,p_address);
    RTC.set_sram_byte(highByte,p_address +1);
    
  }

//This function will read a 2 byte integer from the eeprom at the specified address and address + 1
unsigned int SRAMReadInt(int p_address)
	{
  
	byte lowByte = RTC.get_sram_byte(p_address);
	byte highByte = RTC.get_sram_byte(p_address + 1);

	return ((lowByte << 0) & 0xFF) + ((highByte << 8) & 0xFF00);
	}
